package com.omni.dao.clause;

public class PagingClause {

	private int startRowNo	= 0;
	private int pageSize	= 10;

	public int getStartRowNo() {
		return startRowNo;
	}

	public void setStartRowNo(int startRowNo) {
		if (startRowNo > -1)
			this.startRowNo = startRowNo;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		if (pageSize > 0)
			this.pageSize = pageSize;
	}

	@Override
	public String toString() {

		return String.format(" %d,%d ", startRowNo, pageSize);
	}
}
